Skip to content

Instantly share code, notes, and snippets.

@docularxu
docularxu / blog-claude-code-china-zh.md
Last active May 13, 2026 12:06
在中国使用 Claude Code 解决 403 错误 - 完整指南(中文版)

在中国使用 Claude Code 解决 403 错误 - 完整指南(中文版)

在中国使用 Claude Code 解决 403 错误

2026 年 2 月 12 日

如果你在中国尝试使用 Claude Code,大概率会撞上 403 错误。本文覆盖三种使用场景的解决方案:

  • macOS 终端 (shell) - 在终端里直接使用 claude 命令行
  • VS Code 终端 - 在 VS Code 内置终端里使用 claude 命令行
@cgwalters
cgwalters / openshell-security.md
Last active May 13, 2026 12:03
Simplifying OpenShell: Structural Network Isolation via Proxy Sidecar

Simplifying OpenShell: Structural Network Isolation via Proxy Sidecar

(This document has heavy AI generation, but is a result of a fair bit of interactive design/research work with cgwalters, plus of course big tip to paude and other projects which already blazed this trail around network proxying)

Motivation

OpenShell's current inner sandboxing — Landlock, seccomp, network namespaces, iptables, and TOFU binary verification, all running inside the sandbox container — is simultaneously too much and too little.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@aliou
aliou / _readme.md
Created May 11, 2026 19:35
`pi -e https://gist.github.com/aliou/17322b3fa9e816e2231fd4be05005398` — Pi extension for LLM-style shebang prompt scripts
@hqman
hqman / CLAUDE.md
Created February 23, 2026 13:03
Boris Cherny’s CLAUDE.md

Workflow Orchestration

1. Plan Node Default

  • Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
  • If something goes sideways, STOP and re-plan immediately - don't keep pushing
  • Use plan mode for verification steps, not just building
  • Write detailed specs upfront to reduce ambiguity

2. Subagent Strategy

  • Use subagents liberally to keep main context window clean
@kangarko
kangarko / README.md
Last active May 13, 2026 11:58
15-Minute Minecraft Plugin Tutorial For 1.8.8 - 1.21

15-Minute Minecraft Plugin Tutorial For 1.8.8 - 1.21

In this new Minecraft plugin development guide, I'll show you how to make Minecraft plugins for Bukkit, Spigot and Paper.

This guide covers Minecraft plugins for 1.8.8 to 1.21.

We'll be using IntelliJ with a dedicated extension for Minecraft plugin development to make this process fast and easy.

Do you want a complete step-by-step tutorial on developing your own Minecraft plugins? Click here for a full Minecraft plugin development training.

@dsample
dsample / README.md
Last active May 13, 2026 11:49
ASCII art diagrams

ASCI art characters for creating diagrams

Characters:

Single line

  • ASCII code 191 = ┐ ( Box drawing character single line upper right corner )
  • ASCII code 192 = └ ( Box drawing character single line lower left corner )
  • ASCII code 193 = ┴ ( Box drawing character single line horizontal and up )
  • ASCII code 194 = ┬ ( Box drawing character single line horizontal down )